package com.bitgate.util.soapservices;

import com.bitgate.util.soap.Publishable;
import com.bitgate.util.soap.Soap;

import static com.bitgate.util.debug.Debug.debug;
import static com.bitgate.util.debug.Debug.isDebugEnabled;

@Soap(
	requireSession=false,
	entryPoint="/soapTest/",
	documentation="Tests enumeration types, both standard and array types."
)
public class EnumTest
{
	public enum Colors {
		RED, GREEN, BLUE, TURQUOISE, MAUVE, TECHNICOLOR
	}
	
	@Publishable(
		documentation="Tests a single enumeration."
	)
	public Colors test(Colors input) {
		if (isDebugEnabled()) {
			debug("SOAP request: 'test' function: input='" + input + "'");
		}
		
		return input;
	}
	
//	@Publishable(
//		documentation="Tests an array of enumerations."
//	)
//	public Colors[] testArray(Colors[] array) {
//		debug("SOAP request: 'testArray' function: input='" + array + "'");
//		
//		return array;
//	}
}